import QtQuick 2.4
import QtQuick.Dialogs 1.2

Page3Form {
    MessageDialog {
        id: msgDialog
        title: "采购确认"
        text: ""
        onAccepted: Qt.quit()
    }

    comboBox.model: ["狗狗","猫猫","鱼","鸟"]
    button.onClicked: {
        var order = "您的宠物 " + textField.text + " " + label1.text + "\r\n" + comboBox.currentText + " 已经订购成功";
        msgDialog.text = order;
        msgDialog.open();

}
    dial.onValueChanged: {
        progressBar.value = dial.value;
        label1.text = Math.round(dial.value) + " 岁";
    }
}
